package pro.spring.inter;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import pro.spring.model.Fan;

public interface FanMapper {
    int deleteByPrimaryKey(Integer fId);

    int insert(Fan record);

    int insertSelective(Fan record);

    Fan selectByPrimaryKey(Integer fId);

    int updateByPrimaryKeySelective(Fan record);

    int updateByPrimaryKey(Fan record);
    
    //得到总条数
    Integer selectCount();
    
    //分页查询
    List<Fan> selectListPage(@Param("offset")Integer offset,@Param("pagesize")Integer pagesize);
}